package com.example.test.vo;

public enum ResultCode {
    SUCCESS("1000","操作成功"),

    FAIL("1001","操作失败"),

    VALID_FAIL("1002","参数校验失败"),

    ERROR("5000","未知错误");

    private String code;

    private String desc;

    ResultCode(String code, String desc){
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
